package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJTRescueTeamRowMapper implements RowMapper<XJTRescueTeam>{


	@Override
	public XJTRescueTeam mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJTRescueTeam  lj= new XJTRescueTeam();
		lj.setId(rs.getInt("id"));
		lj.setGis_id(rs.getInt("gis_id"));
		lj.setTeam_code(rs.getString("team_code"));
		lj.setTeam_name(rs.getString("team_name"));
		lj.setTeam_dept_id(rs.getInt("team_dept_id"));
		lj.setTeam_tel(rs.getString("team_tel"));
		lj.setTeam_max(rs.getInt("team_max"));
		lj.setTeam_type(rs.getString("team_type"));
		lj.setTeam_remark(rs.getString("team_remark"));
		lj.setTeam_gis(rs.getString("team_gis"));
		lj.setDuty_member(rs.getString("duty_member"));
		lj.setOrg_code(rs.getString("org_code"));
		lj.setEstablished_time(rs.getString("established_time"));
		lj.setFull_or_part_time(rs.getString("full_or_part_time"));
		lj.setTask_type(rs.getString("task_type"));
		lj.setTraining(rs.getString("training"));
		lj.setSite(rs.getString("site"));
		return lj;
	}

}
